package com.xi.springboot.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xi.springboot.entity.Record;
import com.xi.springboot.entity.Url;
import com.xi.springboot.entity.UrlVo;
import org.springframework.ui.Model;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: xjs
 * @Date: 2022/11/19/10:59
 * @Description:
 */
public interface UrlService{
    Boolean bindUrl(String url,String shortUrl,Long userId);
    String  getShortenUrl(HttpServletRequest request);
    String  getOriginUrl(String separate,String shortUrl);
    ArrayList<Url> getUrls(Long userId);
    HashMap<String,String> cashUrl(String url, String shortUrl);
    IPage<Url> selectALlUrls(Integer page);
    IPage<UrlVo> selectByPage(Integer page);
}
